package com.appkubes.mall.core.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
 * 扩展：租赁
 * @author Rongjie
 */
@Data
@TableName("mall_goods_rent")
@KeySequence(value = "mall_goods_rent_SEQ")
@ApiModel(value = "MallGoodsRent对象")
public class MallGoodsRent implements Serializable{

       private String appKey;

       @TableId(value = "goods_key", type = IdType.UUID)
       @ApiModelProperty(value = "商品KEY")
       private String goodsKey;

       @ApiModelProperty(value = "利息，百分比")
       private BigDecimal rentInterestRate;

       @ApiModelProperty(value = "期数", example = "1")
       private Integer periods;

       @ApiModelProperty(value = "1:日；2:周；3:月；4:年", example = "1")
       private Integer periodType;

       @ApiModelProperty(value = "买断价格")
       private BigDecimal buyOutAmount;

       @ApiModelProperty(value = "总租金")
       private BigDecimal rentMoney;

       @ApiModelProperty(value = "每期租金")
       private BigDecimal costPerPeriod;

       @ApiModelProperty(value = "佣金比例")
       private BigDecimal commisionRate;

       @ApiModelProperty(value = "版本号", example = "1")
       @Version
       private Integer version;

}
